/* login.css */
:root {
    --primary-color: #151515;
    --secondary-color: #404041;
    --accent-color: #4d4e4e;
    --text-color: #333;
    --light-color: #f8f9fa;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #ffffff 0%, #515151 50%, #000000 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login {
    width: 380px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: var(--transition);
}

.login:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.login h1 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 1px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form input {
    margin-bottom: 20px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    margin-left: 35px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.login-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.login-form input[type="submit"] {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px;
    margin-top: 10px;
    margin-left:110px;
}

.login-form input[type="submit"]:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(22, 96, 136, 0.3);
}

.login-form input::placeholder {
    color: #aaa;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login {
        width: 90%;
        padding: 30px 20px;
    }
    
    .login h1 {
        font-size: 24px;
    }
    
    .login-form input {
        padding: 12px;
    }
}

/* 加载动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.loading {
    animation: pulse 1.5s infinite;
}